import pandas as pd

data1 = {
    "name": ["Tom", "Nick", "John", "Alice", "Bob"],
    "age": [11, 12, 13, 14, 13],
}

data2 = {
    "name": ["Tom", "Nick", "John", "Alice", "Bob", "JoJo"],
    "source": [55, 66, 77, 66, 55, 88],
}

df1 = pd.DataFrame(data1)
df2 = pd.DataFrame(data2)
merge_df = pd.merge(df1, df2, on="name", how="inner")
print(merge_df)
""" 
    name  age  source
0    Tom   11      55
1   Nick   12      66
2   John   13      77
3  Alice   14      66
4    Bob   13      55
"""